// wrap your post data (Hash) in a call to this to properly 
// set the authenticity token
// 
// eg. 
//   $j.post(post_url, with_auth_token(post_vars), function(){ } );
//
function with_auth_token(post_data) {
  if ( typeof(window.AUTH_TOKEN) != "undefined" ) {
    post_data['authenticity_token'] = encodeURIComponent(window.AUTH_TOKEN);
  }
  return post_data;
}

jQuery(document).ready(function(){

  $j('select#backup_type').change(function(){
    new Ajax.Request('/backups/plugin_attributes.js?plugin=' + this.value, { asynchronous: true, evalScripts: true, method: 'get', onSuccess: function(){} } );
  });

});
